package ucd.csi.comp30220.fall2011.oteop.demo;

import ucd.csi.comp30220.fall2011.oteop.collision.CollisionServer;
import ucd.csi.comp30220.fall2011.oteop.flughafen.AirportInfo;
import ucd.csi.comp30220.fall2011.oteop.flughafen.impl.RemoteAirportServer;
import ucd.csi.comp30220.fall2011.oteop.navigation.Position;
import ucd.csi.comp30220.fall2011.oteop.traffic.impl.TrafficServer;

public class Servers {
    
    public static final AirportInfo BL = new AirportInfo("BL", new Position(52, -9));
    public static final AirportInfo TL = new AirportInfo("TL", new Position(56, -9));
    public static final AirportInfo TR = new AirportInfo("TR", new Position(56, -5));
    public static final AirportInfo BR = new AirportInfo("BR", new Position(52, -5));
    
    public static final AirportInfo DUB = new AirportInfo("DUB", new Position(53.42155, -6.2977));
    public static final AirportInfo LHR = new AirportInfo("LHR", new Position(51.4706, -0.4619416));
    public static final AirportInfo NCL = new AirportInfo("NCL", new Position(55.0375, -1.6917));
    public static final AirportInfo EDI = new AirportInfo("EDI", new Position(55.9500, -3.35007));
    
    public static void main(String[] argv) throws Exception {
        new CollisionServer();
        new TrafficServer("Shannon");
        new RemoteAirportServer(BL);
        new RemoteAirportServer(TL);
        new RemoteAirportServer(TR);
        new RemoteAirportServer(BR);
        //new RemoteAirportServer(DUB);
        //new RemoteAirportServer(LHR);
        //new RemoteAirportServer(NCL);
        //new RemoteAirportServer(EDI);
        System.err.println("### All Servers Registered");
    }
}
